package com.lonely.purchase.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lonely.common.core.domain.BaseEntity;
import com.lonely.purchase.enums.MaterialPurchaseEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @author 黄志标
 * @date 2025-07-23 15:18
 * @Description: 订单物料采购补料扣损表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_material_purchase_deduction_replenish")
public class SysMaterialPurchaseDeductionReplenish extends BaseEntity implements Serializable {

    /**
     * 物料采购id
     */
    private Long materialPurchaseId;

    /**
     * 异常类型：1：扣损  2：补料
     *
     * @see MaterialPurchaseEnum.MaterialPurchaseFailTypeEnum
     */
    private Integer failType;

    /**
     * 扣损数量
     */
    private String deductionQuantity;

    /**
     * 补料数量
     */
    private String replenishQuantity;

    /**
     * 附件
     */
    private String attachments;

}
